package com.dxf.sysadmin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 课表
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("`course-clazz-teacher`")
@ApiModel(value="Course-clazz-teacher对象", description="课表")
public class CourseClazzTeacher extends Model<CourseClazzTeacher> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "课程id")
    @TableField("courseId")
    private Long courseId;

    @ApiModelProperty(value = "班级id")
    @TableField("clazzId")
    private Long clazzId;

    @ApiModelProperty(value = "教师id")
    @TableField("teacherId")
    private Long teacherId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
